import axios from '@/http/axios'
export default{
    namespaced:true,
    state:{
        productInfo:{},
    },
    getters:{},
    mutations:{
        setProductInfo(state,data){
            state.productInfo=data
        }
    },
    actions:{
        async toLoadProductInfo(context,params){
            let res = await axios.get('/product/findById?id='+params)
            context.commit('setProductInfo',res.data.data)
        }
    }
}